<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
session_start();
$_DBSite = "Master";
include_once(__DBConnect_File);

if(!getAdminIsOnLine()){ 
	include_once(__Modules_Path."/LogRecord.lib.php");
	AddData_Log($_SESSION["Admin_Info"] -> Account, "管理者 Session 不存在",  "管理者嘗試使用『".__FILE__."』，發現其尚未登入，或已過期限！！");
	ErrMsgOutputHTML("No Session", "AdminNoSession", 1);
}

if(!getAdminIsRightCKey()){
	session_destroy();
	ErrMsgOutputHTML("CKey Error", "AdminNoSession", 1);
}

//若是強制更改密碼，則導到更改密碼畫面
if($_SESSION["Admin_Info"] -> isForceChangePWD == 1 && $_data["Force"] != "Yes"){
	header("Location: /k_admin/UserCredit/user_password.php?Force=Yes");
	exit();
}

//include_once($_SERVER["DOCUMENT_ROOT"]."/modules/UserSessions.lib.php");
//UserSession_ReStart(session_id(), $_SESSION["Admin_Info"] -> ID, $_SESSION["Admin_Info"] -> MemberGroup);
?>